<?php
class MaterialSlideAction extends BaseAction
{
    public function index()
    {
    }

    function getSlide()
    {
        $BrandModel = D('Brand');
        $allCount = $BrandModel->count();
        $Page = new Page($allCount, 50);
        $brands = $BrandModel->field('id, name, ename, initials')->limit($Page->firstRow . ',' . $Page->listRows)->order('id DESC')->select();
        $this->assign('brands', $brands);
        $this->assign('page', $Page->show());
        $this->display();
    }
}